filter To Option
inline fun filterToOption(predicate: (R) -> Boolean): Option<Either<L, R>>
Content copied to clipboard
Returns Some containing the same Right if the predicate is satisfied for the value. Otherwise returns None.
Return
Some containing the same Right if the predicate is satisfied for the value. Otherwise returns None.
Since
1.3
Parameters
predicate
Predicate function.